import request from '@/utils/request'

// 查询
export function caseSelectList(query) {
    return request({
        url: '/library/case/selList',
        method: 'get',
        params: query
    })
}

// 新增
export function addLibraryCase(data) {
    return request({
        url: '/library/case',
        method: 'post',
        data: data
    })
}
// 详情
export function getCaseDetail(query) {
    return request({
        url: '/library/case/details',
        method: 'get',
        params: query
    })
}
// 修改
export function updatelibraryCase(data) {
    return request({
        url: '/library/case',
        method: 'put',
        data: data
    })
}
// 删除
export function deleteLibraryCase(id) {
    return request({
        url: '/library/case/' + id,
        method: 'delete'
    })
}